package spring.controller;

import io.swagger.annotations.ApiOperation;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/zufang")
public class ZufangController {
    @Autowired
    private SqlSessionTemplate dao;

    @RequestMapping(value = "/get_all_xinxi",method = RequestMethod.GET)
    @ApiOperation(value = "获取所有天河的租房信息", notes = "获取所有天河的租房信息", httpMethod = "GET")
    public List<Map> imformation(){
        return dao.selectList("TianhezufangMapper.allZhaoZu");
    }
}
